<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>

<head>
    <title>信息管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="../static/assets/css/dpl-min.css" rel="stylesheet" type="text/css"/>
    <link href="../static/assets/css/bui-min.css" rel="stylesheet" type="text/css"/>
    <link href="../static/assets/css/main-min.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<a href="?lang=zh_CN"><spring:message code="language.cn"/></a> &nbsp;&nbsp;&nbsp;
<a href="?lang=en_US"><spring:message code="language.en"/></a>
<div class="header">

    <div class="dl-title">
        <a href="#">
            <span class="dl-title-text"><spring:message code="manage"/> </span>
        </a>
    </div>

    <div class="dl-log">
        <spring:message code="welcome"/>，<span class="dl-log-user">****</span>
        <a href="/demo/logout" title="<spring:message code="logout"/>" class="dl-log-quit">[<spring:message code="quit"/>]</a>
        <a href="###" title="<spring:message code="changePassword"/>" id="modifyPwd"><spring:message code="changePassword"/></a>
        <div id="modifyPwdcontend" class="hide">
            <form id="A_Form" class="form-horizontal">
                <div class="row" style="padding-top: 10px;">
                    <div class="control-group span12">
                        <label class="control-label"><spring:message code="password"/>：</label>
                        <div class="row">
                            <input  type="password" name="originalCode" placeholder="<spring:message code="inputPassword"/> "
                                   class="input-normal control-text">
                        </div>
                    </div>
                </div>
                <div class="row" style="padding-top: 10px;">
                    <div class="control-group span12">
                        <label class="control-label"><spring:message code="newPassword"/>：</label>
                        <div class="row">
                            <input type="password" name="newCode1" placeholder="<spring:message code="newPassword"/>"
                                   class="input-normal control-text">
                        </div>
                    </div>
                </div>
                <div class="row" style="padding-top: 10px;">
                    <div class="control-group span12">
                        <label class="control-label"><spring:message code="confirm"/>：</label>
                        <div class="row">
                            <input type="password" name="newCode2" placeholder="<spring:message code="confirm"/>"
                                   class="input-normal control-text">
                        </div>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
<div class="content">
    <div class="dl-main-nav">
        <ul id="J_Nav" class="nav-list ks-clear">
            <li class="nav-item dl-selected">
                <div class="nav-item-inner nav-home"><spring:message code="home"/></div>
            </li>
        </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
</div>
<script type="text/javascript" src="../static/assets/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="../static/assets/js/bui.js"></script>
<script type="text/javascript" src="../static/assets/js/config.js"></script>
<script src="../static/assets/js/jquery.validate.min.js"></script>
<script src="../static/assets/js/ReminderSetting.js"></script>

<script>
    BUI.use('common/main', function () {
        var config = [{
            id: 'menu',
            homePage: 'code',
            menu: [{
                text: '<spring:message code="homeContent"/>',
                items: [{
                    id: 'code',
                    text: '<spring:message code="home"/>',
                    href: '../demo/c',
                    closeable: false
                }]
            }]
        }];
        new PageUtil.MainPage({
            modulesConfig: config
        });
    });
    BUI.use('bui/overlay', function (Overlay) {
        $('#modifyPwd').on('click', function () {
            var dialog = new Overlay.Dialog({
                title: '<spring:message code="changePassword"/> ',
                width: 350,
                height: 220,
                closeAction: 'destroy', //每次关闭dialog释放
                //配置查询容器的编号
                contentId: 'modifyPwdcontend',
                buttons: [{
                    text: '<spring:message code="modify"/>',
                    elCls: 'button button-success',
                    handler: function() {
                        //do some thing
                        this.close();
                    }
                }, {
                    text: '<spring:message code="cancel"/>',
                    elCls: 'button button-disabled',
                    handler: function() {
                        this.close();
                    }
                }]
            });
            dialog.show();
        });

    });
</script>
</body>

</html>